package com.example.project.manageController;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("manage")
public class ManageIndexController {
    @RequestMapping("index")
    public String index() {
        return "manage/index";
    }
    @GetMapping("exit")
    public String exit(HttpSession session) {
        session.invalidate();
        return "web/login";
    }
}
